from app import app,db
from app.models import User,Post

# 添加一个flask shell导入上下文，在交互式命令下，就不用重复导入资源
@app.shell_context_processor
def make_shell_context():
    return {'db':db, 'User':User, 'Post':Post}